import java.awt.Image;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;


@SuppressWarnings("serial")
public class PictureLabel extends JPanel{
	public PictureLabel() {
		setOpaque(false);
		java.io.File file = new java.io.File("");
	    String  abspath=file.getAbsolutePath();
		Image image = null;
		try {
			image = ImageIO.read(new File(abspath + "\\hrc2.jpg"));
		} catch (IOException e1) {
			e1.printStackTrace();
		}
		JLabel picLabel = new JLabel(new ImageIcon(image));
		this.setBorder(javax.swing.BorderFactory.createEmptyBorder());
		add(picLabel);
		
		
	}

}
